﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;

namespace Sunlit.Business.HomeSliders.Dto
{
    [AutoMapTo(typeof(HomeSlider))]
    public class CreateHomeSliderInput
    {
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(256)]
        public string Title { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        [Required(ErrorMessage = "请输入图片地址")]
        [StringLength(512)]
        public string ImageUrl { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        [StringLength(512)]
        public string LinkUrl { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public SliderType SliderType { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int DisplayOrder { get; set; }
    }
}
